<template>
    <template v-if="globalStore.appQr.show">
        <view :class="$style.mask" @click="close">
        
    </view>


    <view :class="$style.box">
        <img mode="widthFix" :class="$style.img" :src="baseurl + globalStore.appQr.src" />
        <!-- <img mode="widthFix" :class="$style.img" src="https://wxmh.swun.edu.cn/uploads/2024/10/21/5d62bbfb81911e1f1cc2f4dc7a673ba4.png" /> -->
        <view  :class="$style.text">长按识别二维码</view>
    </view>
    </template>
</template>

<script lang="ts" setup>
import { useGlobalStore } from '@/stores';


const baseurl = import.meta.env.B_NET_STATIC_URL
const globalStore = useGlobalStore()


    function close() {
        globalStore.appQr.show = false
    }
</script>


<style lang="scss" module>

.mask{
    position: fixed;
    z-index: 100;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background-color: rgba($color: #000000, $alpha: 0.6);
}

.box{
        position: fixed;
        z-index: 102;
        background-color: #fff;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        margin: auto;
        padding: 10rpx 10rpx;
        .img{
            display: block;
            width: 100%;
            margin: auto;
        }

        .text{
            margin-top: 20rpx;
            text-align: center;
            font-size: 24rpx;
        }
    }
</style>